package com.bang.daybreak.role.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.bang.daybreak.common.framework.model.convert.Convert;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author wangdejian
 * @since 2019-11-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_role")
public class SysRole extends Convert {

private static final long serialVersionUID=1L;

    /**
     * 角色表主键id
     */
    @TableId(value = "role_id", type = IdType.AUTO)
    private Integer roleId;

    /**
     * 角色权限标识
     */
    private String code;

    /**
     * 角色名称
     */
    private String roleName;

    /**
     * 描述
     */
    private String description;

    /**
     *  当前登录用户编号
     */
    private String createUser;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新登录用户编号
     */
    private String updateUser;

    /**
     *  更新时间
     */
    private LocalDateTime updateTime;


    public static final String ROLE_ID = "role_id";

    public static final String CODE = "code";

    public static final String ROLE_NAME = "role_name";

    public static final String DESCRIPTION = "description";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

}
